package com.bosssoft.permission.centre.pojo.dto.pcp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sd365.common.core.common.pojo.dto.TenantBaseDTO;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @program: sd365-permission-centre
 * @description: RoleResourceDTO类
 * @author: Liwenhai
 * @create: 2020-12-11 21:18
 **/

@Data
@AllArgsConstructor
public class RoleResourceDTO extends TenantBaseDTO {
    /**
     * 角色id列表
     */
    private List<Long> roleIds;
    /**
     * 资源id列表
     */
    private List<Long> resourceIds;

    /**
     * 角色ID
     */

    private Long roleId;

    /**
     * 资源ID
     */

    private Long resourceId;

    /**
     * 预计到达时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedTime;

    /**
     *  机构
     */
    private OrganizationDTO organizationDTO;
    /**
     *  公司
     */
    private CompanyDTO companyDTO;

    /**
     * 客户
     */
    private  TenantDTO tenantDTO;

    public RoleResourceDTO(){
        organizationDTO = new OrganizationDTO();
        companyDTO = new CompanyDTO();
        tenantDTO = new TenantDTO();
    }
}
